package com.gaswell.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FindLastDataVo2 implements Comparable<FindLastDataVo2> {
    private String jh;
    private String zyq;
    private String cjsj;
    private String sjzt;
    private String gkzt;
    private double yy;
    private double ty;
    private double jkwd;
    private String rbrq;
    private BigDecimal rcql;
    private BigDecimal rcsl;
    private String zm;
    private String ym;
    private String ywbh;
    private String zwbh;
    private java.sql.Date rq;
    private String scsj;

    private List<String> record;
    private List<String> record_type;

    @Override
    public int compareTo(FindLastDataVo2 o) {
        if (!this.getJh().equals(o.getJh()))
            return this.getJh().compareTo(o.getJh());
        else {
            return o.getCjsj().compareTo(this.getCjsj());
        }
    }
}
